package com.im.chat.handler;

import com.im.chat.domain.Result;
import com.im.chat.nett.NettyServer;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author chenmin
 * @since 2023-05-24
 **/
public class JoinGroupHandler {
    public static void execute(ChannelHandlerContext channelHandlerContext){
        //将Channel添加到ChannelGroup
        NettyServer.GROUP.add(channelHandlerContext.channel());
        channelHandlerContext.channel().writeAndFlush(Result.success("加入系统默认群聊成功~"));
    }
}
